<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
	template="/templates/layout_mobile.xhtml">

	<ui:define name="pchead">
		<h2>收货单信息</h2>
	</ui:define>
	<ui:define name="pcontent">		
		<pm:content>
			<h:form>
				<h:outputText value="收货单号：#{mobileReceiptMB.selectedReceipt.id}" />	<p></p>				
                <h:outputText value="供应商：#{mobileReceiptMB.selectedReceipt.supplier}"/>	<p></p>
			
				<p:growl id="msgs" showDetail="true" />
				<p:dataList var="qrow" value="#{mobileReceiptMB.selectedReceipt.bmeReceiptDetails}" >
                   	<h:outputText value="物料编号：#{qrow.bmeMaterial.id}"/>	<p></p>
                   	<h:outputText value="物料名称：#{qrow.bmeMaterial.mdesc}"/>	<p></p>
                   	<h:outputText value="送货数量：#{qrow.mquantity}" style="color:blue;"/>	<p></p>
                   					
                   	<h:outputText value="签收数量："/> 
                   	<p:inputText value="#{qrow.squantity}" required="true" requiredMessage="签收数量不能为空" />
                   	<h:outputText value="破损数量："/> 
                   	<p:inputText value="#{qrow.dquantity}" />
                   	<h:outputText value="备注："/> 
                   	<p:inputText value="#{qrow.remarks}" />
				</p:dataList>				

				<h:panelGrid columns="2" cellspacing="30">
					<p:commandButton  value="签收" icon="ui-icon-check"	update="msgs"	
						action="#{mobileReceiptMB.signAction}" style="color:white;background-color:#3366AA;">
					</p:commandButton>
					<p:button outcome="m_receipt_sign_query.xhtml" value="返回" icon="ui-icon-back" style="color:white;background-color:#3366AA;"/>
				</h:panelGrid>			
								
			</h:form>
		</pm:content>

	</ui:define>

</ui:composition>